package com.nlp.weixin.web.util;

import javax.servlet.http.HttpServletRequest;
/**
 * 微信相关
 * @author zyl
 *
 */
public class WeiXinUtil {
	/**
	 * 根据user-agent判断是否微信浏览器
	 * @param requst
	 * @return
	 */
	public static boolean isMicroMessenger( HttpServletRequest requst ){
		String agent = requst.getHeader("user-agent");
		if( agent != null && agent.contains("MicroMessenger") ){
			return true;
		}
		return false;
	}
}
